fix parser

main
Brett 2024-05-01 20:11:38 -04:00
parent 0f34604aa6
commit 93d0c87b30
1 changed files with 2 additions and 1 deletions

3
create_systemd_service.py Normal file → Executable file
View File

@ -13,7 +13,8 @@ parser.add_argument("-w", "--wanted", default="multi-user.target")
parser.add_argument("-d", "--working_dir", default=None)
parser.add_argument("-u", "--user", default=None)
parser.add_argument('-g', "--group", default=None)
parser.add_argument("service_name", required=("--install" in sys.argv or "-i" in sys.argv), default=None)
if "--install" in sys.argv or "-i" in sys.argv:
parser.add_argument("service_name", default=None)
args = parser.parse_args()