Adding argparse stub for del command
parent
06b5372219
commit
cedd6c3522
|
@ -271,6 +271,22 @@ parser_add.add_argument( "--confname" ,
|
|||
help="A special name to save the conf " \
|
||||
"file/directory in the persoconf directory" )
|
||||
|
||||
# Delete
|
||||
parser_del = subparsers.add_parser( "delete" ,
|
||||
help="Delete an app from the persoconf " \
|
||||
"directory, or a config file from " \
|
||||
"an existing app" )
|
||||
|
||||
parser_del.add_argument( "app" ,
|
||||
type=str ,
|
||||
help="The app to delete, or the app to delete a " \
|
||||
"conf file from" )
|
||||
|
||||
parser_del.add_argument( "conf" ,
|
||||
nargs="?" ,
|
||||
type=str ,
|
||||
help="The conf file or directory to delete from " \
|
||||
"the app" )
|
||||
|
||||
# Parse arguments
|
||||
args = parser.parse_args()
|
||||
|
|
Loading…
Reference in New Issue