Adding argparse stub for del command

master
Lertsenem 2015-09-16 17:48:25 +02:00
parent 06b5372219
commit cedd6c3522
1 changed files with 16 additions and 0 deletions

View File

@ -271,6 +271,22 @@ parser_add.add_argument( "--confname" ,
help="A special name to save the conf " \ help="A special name to save the conf " \
"file/directory in the persoconf directory" ) "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 # Parse arguments
args = parser.parse_args() args = parser.parse_args()