From 0913e35f7f04401bfe7cd6dc0fea4b071e80360f Mon Sep 17 00:00:00 2001 From: trivernis Date: Wed, 20 Apr 2022 18:16:00 +0200 Subject: [PATCH] Add info about debug logging to the README Signed-off-by: trivernis --- README.md | 16 ++++++++++++++-- src/args.rs | 2 +- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7e4886f..b6aa861 100755 --- a/README.md +++ b/README.md @@ -62,10 +62,10 @@ jade networking getcryst.al --ipv6 ### configure users ```sh # make a new user called nonRootHaver, without sudo and easytohack as the password -jade users newUser nonRootaver false easytohack +jade users newUser nonRootaver easytohack # make a user called rootHaver, with sudo and omgsosuperhardtohack as the password -jade users newUser rootHaver true omgsosuperhardtohack +jade users newUser rootHaver omgsosuperhardtohack --sudoer ``` ### set root password @@ -88,6 +88,18 @@ jade desktops gnome jade setup-timeshift ``` +### debug logging + +debug messages: +```sh +jade -v +``` + +traces: +```sh +jade -vv +``` + ## How to build: Tested on latest Cargo (1.60.0-nightly) diff --git a/src/args.rs b/src/args.rs index ae8751c..17f8447 100644 --- a/src/args.rs +++ b/src/args.rs @@ -155,7 +155,7 @@ pub struct NewUserArgs { pub username: String, /// If the user should have root privileges - #[clap(long, aliases=&["has-root"])] + #[clap(long, aliases=&["has-root", "sudoer", "root"])] pub hasroot: bool, /// The password to set. NOTE: Takes hashed password, use `openssl passwd -1 ` to generate the hash.